package work1.work7;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.HashMap;

public class Test2 {
    public static void main(String[] args) {
        HashMap Map = new HashMap();
        InputStream in =null;
        BufferedInputStream bis =null;
        try {
            in=new FileInputStream("pan.txt");
            bis=new BufferedInputStream(in);
            int len=0;
            byte[] bytes=new byte[1024];
            while ((len=bis.read(bytes))!=-1){
                System.out.print(new String(bytes,0,len));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
